.PHONY: all
all: server client

server: us.o errExit.o
	gcc $^ -o $@

client: uc.o errExit.o
	gcc $^ -o $@

uc.o: uc.c
	gcc -c $^

us.o: us.c
	gcc -c $^

errExit.o: errExit.c
	gcc -c errExit.c

.PHONY: clean
clean:
	rm server client *.o
	
